home *** CD-ROM | disk | FTP | other *** search
- // Dynamic link library implementation of NeuroSolutions LinearScheduler component
-
- #include "NSDLL.h"
-
- /***********************************/
- /* Forward activation of component */
-
- __declspec(dllexport) void performScheduler(
- DLLData *instance, // Pointer to instance data (may be NULL)
- NSFloat *data, // Pointer to the data to be scheduled
- int length, // Number of elements in the scheduled data vector
- NSFloat beta // Scheduler parameter controlled by user in components inspector
- )
- {
- int i;
-
- for (i=0; i<length; i++)
- data[i] += beta;
- }
-
- /******************************************/
- /* Management of instance data (OPTIONAL) */
- /*
- __declspec(dllexport) DLLData *allocScheduler(
- DLLData *oldInstance, // Pointer to the last instance if reallocating
- int length // Number of elements in the scheduled data vector
- )
- {
- DLLData *instance = allocDLLInstance(oldInstance);
- return instance;
- }
-
- __declspec(dllexport) void freeScheduler(DLLData *instance)
- {
- freeDLLInstance(instance);
- }
- */